package com.cn.shop.dao;

import com.cn.shop.entity.User;
import com.cn.shop.entity.home.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface ManageDao {
    /*获取用户列表*/
    List getUserLists();
    /*删除用户*/
    Boolean deleteUser(String cifSeq);
    /*查询用户*/
    int selectUserByCifSeq(String cifSeq);
    /*获取公告列表*/
    List getNoticeLists();
    /*查看公告详情*/
    Map getNoticeDetail(int noticeId);
    /*删除公告*/
    Boolean deleteNotice(int noticeId);
    /*添加公告*/
    Boolean addNotice(Map params);
    /*更新公告*/
    Boolean updateNotice(@Param("noticeId")int noticeId, @Param("noticeContent")String noticeContent);
}
